package com.example.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import org.springframework.stereotype.Component;

import java.sql.Date;
@Data
@AllArgsConstructor
@NoArgsConstructor
@EqualsAndHashCode
@Component
@TableName("oldphoto")
public class OldPhoto {
        @TableId(value = "photoId", type = IdType.AUTO)
        private Integer photoId;
        private Date uptime;
        private String url;
        private Integer userId;
        private  String photoType;
}
